import { xsEntity } from './commentity';
import { Column, Entity, ManyToOne, OneToMany } from 'typeorm';
import { FoodEntity } from './food';
import { skuEntity } from './sku';

/**
 * 描述
 */
@Entity()
export class spuitemEntity extends xsEntity {
    @Column({ comment: 'name : 分量' })
    name: string;

    @ManyToOne(() => FoodEntity, user => user.spu)
    Pid: FoodEntity;


    @OneToMany(() => skuEntity, photo => photo.list)
    sku: skuEntity[];
}
